package main

import (
	"./appearance/fonts"
	"fmt"
)

func printFonts(list fonts.Fonts) {
	for _, v := range list {
		fmt.Printf("%s - %s\n", v.Id, v.Name)
		fmt.Printf("\t%s - %s\n", v.Family, v.FamilyName)
		fmt.Println("\tStyles:", v.Styles)
		fmt.Println("\tFile", v.File)
		fmt.Println("")
	}
}

func printFamilies(list fonts.Families) {
	for _, v := range list {
		fmt.Printf("%s - %s\n", v.Id, v.Name)
		fmt.Println("\tStyles:", v.Styles)
		fmt.Println("\tFiles:", v.Files)
		fmt.Println("")
	}
}

func main() {
	list := fonts.ListFont()
	fmt.Println("All:")
	printFonts(list)

	stand := fonts.ListStandardFamily()
	fmt.Println("Standard family:")
	printFamilies(stand)

	mono := fonts.ListMonospaceFamily()
	fmt.Println("Monospace family:")
	printFamilies(mono)
}
